﻿<Window x:Class="ResourceBlender_Express.WinUnhandledException"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    loc:WindowService.EscapeClosesWindow="True"
    Title="Error" Width="400" Height="400"
    ResizeMode="NoResize" SizeToContent="Height"
    WindowStartupLocation="CenterOwner"
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/Resources/images/resourceblender.ico">
    <StackPanel Margin="6">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="48" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Image Grid.Column="0" Source="Resources/images/error_48.png" />
            <TextBlock Grid.Column="1" Style="{StaticResource PaddedTextBlock}" TextWrapping="Wrap">ResourceBlender has encountered an unexpected error and may need to close. It would greatly help the developer to know more about this error so it can be avoided in the future.</TextBlock>
        </Grid>
        <TextBlock TextWrapping="Wrap">If you have time, please send an error report to bugs@lime49.com or post on the forums at <Hyperlink NavigateUri="http://forums.lime49.com/" RequestNavigate="lnk_RequestNavigate">http://forums.lime49.com/</Hyperlink>.</TextBlock> 
        <ScrollViewer Height="105">
            <TextBlock x:Name="txtDisplayMessage" Style="{StaticResource PaddedTextBlock}" Text="Message" TextWrapping="Wrap" IsEnabled="False" MinHeight="60" />
        </ScrollViewer>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button MinWidth="140" IsDefault="True" Click="SendReport">Send Error Report</Button>
            <Button MinWidth="70" IsCancel="True" Click="CloseWindow" Margin="2,2,0,2" >Don't Send</Button>
        </StackPanel>
    </StackPanel>
</Window>
